package com.sanshow.charging.util;

import androidx.annotation.NonNull;

import com.jakewharton.processphoenix.ProcessPhoenix;
import com.sanshow.charging.MyApplication;

public class CrashHandler implements Thread.UncaughtExceptionHandler {

    @Override
    public void uncaughtException(@NonNull Thread t, @NonNull Throwable e) {
        ProcessPhoenix.triggerRebirth(MyApplication.getContext());
    }
}
